<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>职位搜索22001011032刘晓妍</title>
    <script src="./js/getname.js"></script>
    <script src="./js/goPage.js"></script>
    <!-- <style></style> -->
    <link rel="stylesheet" href="./css/rejipage.css" />
  </head>
  <body>
    <header class="header">
      <div class="search-container">
        <select class="location-select">
          <option>大连</option>
          <option>北京</option>
          <option>上海</option>
          <option>广州</option>
        </select>
        <div class="search-box">
          <input type="text" class="search-input" placeholder="搜索职位、公司" />
          <button class="search-btn">搜索</button>
        </div>
        <a href="#" class="app-download">去App</a>
      </div>
    </header>

    <div class="filters">
      <div class="filter-row">
        <ul class="filter-list">
          <li class="filter-item active">城市和区域</li>
          <li class="filter-item">地铁</li>
        </ul>
      </div>
      <div class="filter-row">
        <ul class="filter-list">
          <li class="filter-item">全国</li>
          <li class="filter-item">北京</li>
          <li class="filter-item">上海</li>
          <li class="filter-item active">大连</li>
          <li class="filter-item">深圳</li>
          <li class="filter-item">杭州</li>
        </ul>
      </div>
      <div class="filter-row">
        <ul class="filter-list">
          <li class="filter-item">不限</li>
          <li class="filter-item">和平区</li>
          <li class="filter-item">河西区</li>
          <li class="filter-item">河东区</li>
          <li class="filter-item">河北区</li>
        </ul>
      </div>
    </div>

    <div class="job-list">
      <div class="job-card">
        <div class="job-info" onclick="goToPage('./detail.html')">
          <h3 class="job-title">unity3d技术美术 [大连]</h3>
          <span class="job-salary">6-10K</span>
          <span class="job-meta">1-3年</span>
          <span class="job-meta">大专</span>
          <div class="tags">
            <span class="tag">技术美术</span>
            <span class="tag">虚拟仿真</span>
            <span class="tag">数字孪生</span>
            <span class="tag">unity</span>
          </div>
        </div>
        <span>元亨视觉</span>
        <!-- <img src="/api/placeholder/60/60" alt="元亨视觉" class="company-logo" /> -->
      </div>

      <div class="job-card">
        <div class="job-info">
          <h3 class="job-title">unity技术美术师 [大连]</h3>
          <span class="job-salary">7-12K</span>
          <span class="job-meta">1-3年</span>
          <span class="job-meta">大专</span>
          <div class="tags">
            <span class="tag">游戏</span>
            <span class="tag">未融资</span>
            <span class="tag">100-499人</span>
          </div>
        </div>
        <!-- <img src="/api/placeholder/60/60" alt="天匠动画" class="company-logo" /> -->
        <span>天匠动画</span>
      </div>

      <div class="job-card">
        <div class="job-info">
          <h3 class="job-title">游戏技术美术 [大连·甘井子区·高新园区]</h3>
          <span class="job-salary">7-12K</span>
          <span class="job-meta">1-3年</span>
          <span class="job-meta">大专</span>
          <div class="tags">
            <span class="tag">游戏</span>
            <span class="tag">未融资</span>
            <span class="tag">100-499人</span>
          </div>
        </div>
        <!-- <img src="/api/placeholder/60/60" alt="天匠动画" class="company-logo" /> -->
        <span>正成科技</span>
      </div>

      <div class="job-card">
        <div class="job-info">
          <h3 class="job-title">游戏美术设计 [大连·甘井子区·高新园区]</h3>
          <span class="job-salary">7-12K</span>
          <span class="job-meta">1-3年</span>
          <span class="job-meta">大专</span>
          <div class="tags">
            <span class="tag">游戏</span>
            <span class="tag">未融资</span>
            <span class="tag">0-20人</span>
          </div>
        </div>
        <!-- <img src="/api/placeholder/60/60" alt="天匠动画" class="company-logo" /> -->
        <span>北境互娱</span>
      </div>

      <div class="job-card">
        <div class="job-info">
          <h3 class="job-title">Unity技术美术 [大连]</h3>
          <span class="job-salary">5-10K</span>
          <span class="job-meta">1-3年</span>
          <span class="job-meta">本科</span>
          <div class="tags">
            <span class="tag">游戏</span>
            <span class="tag">未融资</span>
            <span class="tag">100-499人</span>
          </div>
        </div>
        <!-- <img src="/api/placeholder/60/60" alt="天匠动画" class="company-logo" /> -->
        <span>红岸</span>
      </div>
    </div>

    <script>
      document.addEventListener("DOMContentLoaded", function () {
        // Handle filter item clicks
        const filterItems = document.querySelectorAll(".filter-item");
        filterItems.forEach(item => {
          item.addEventListener("click", function () {
            // Remove active class from siblings
            const siblings = item.parentElement.children;
            Array.from(siblings).forEach(sibling => {
              sibling.classList.remove("active");
            });
            // Add active class to clicked item
            item.classList.add("active");
          });
        });

        // Handle search
        const searchBtn = document.querySelector(".search-btn");
        const searchInput = document.querySelector(".search-input");
        const locationSelect = document.querySelector(".location-select");

        searchBtn.addEventListener("click", function () {
          const searchTerm = searchInput.value;
          const location = locationSelect.value;
          console.log(`Searching for ${searchTerm} in ${location}`);
          // Add your search logic here
        });

        // Handle job card clicks
        const jobCards = document.querySelectorAll(".job-card");
        jobCards.forEach(card => {
          card.addEventListener("click", function () {
            const jobTitle = card.querySelector(".job-title").textContent;
            console.log(`Clicked job: ${jobTitle}`);
            // Add your job detail view logic here
          });
        });
      });
    </script>
  </body>
</html>
